#!/usr/bin/env bash
if [ "$(tmux list-panes | wc -l | cut -d' ' -f1)" -ne 1 ]; then
  tmux kill-pane -t 1
fi
tmux split-window -h "bash --rcfile <(echo '. ~/.bashrc;$*')"
